package uno.linze.interview_question.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 用户对答案的点赞记录表
 * @TableName user_vote_answer
 */
@TableName(value ="user_vote_answer")
@Data
public class UserVoteAnswer {
    /**
     * 点赞记录唯一ID，主键，自增
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 点赞用户ID
     */
    private Integer userId;

    /**
     * 被点赞答案ID
     */
    private Integer answerId;
}